package com.example.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 坤哥
 * @since 2024-07-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_role_menu")
@Schema(name = "RoleMenu", description = "")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

      @Schema(description = "ID")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @Schema(description = "角色ID")
      private Integer roleId;

      @Schema(description = "菜单ID")
      private Integer menuId;

      //角色菜单Id
      @TableField(exist = false)
     private List<Integer> menuIds;
}
